get post title by post id wordpress

132

search post by post title in wordpres -

Code
$args = array("post_type" => "mytype", "s" => $title);
$query = get_posts( $args );

Comments

Submit
0 Comments